﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace Nirvana
{
    [CustomPropertyDrawer(typeof(LayerAttribute))]
    public sealed class LayerPropertyDrawer : PropertyDrawer
    {
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            int intValue = EditorGUI.LayerField(position, label.text, property.intValue);
            property.intValue = intValue;
        }

    }
}

